#!/usr/bin/env python

import sys, os, glob
from pkg_resources import require, DistributionNotFound, VersionConflict
from setuptools import setup

#try:
#    require('feedbar')
#    print
#    print 'You have Feedbar installed.'
#    print 'You need to remove Feedbar from your site-packages'
#    print 'before installing this software, or conflicts may result.'
#    print
#    sys.exit()

#except (DistributionNotFound, VersionConflict):
#    pass


#should be built with prefix /usr, or add /usr here

setup(name='feedbar',
      version='0.01',
      description='A compact feed ticker',
      author='Tareq Aljurf',
      author_email='taljurf@fedoraproject.org',
      url='http://www.feedbar.org',
      packages=["feedbar"],
      package_dir={"feedbar": "src/"},
      scripts = ['src/feedbar'],
      classifiers=[
          'Development Status :: Early Development',
          'Environment :: X11 Applications',
          'Intended Audience :: End Users/Desktop',
#license correct
          'License :: GNU General Public License Version 3 (GPLv3)',
          'Operating System :: Linux',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: Microsoft :: Windows',
          'Programming Language :: Python',
#          'Topic :: Multimedia :: Sound :: Players',
            ],
      data_files=[
                  ('/usr/share/applications', ['feedbar.desktop']),
                  ('/usr/share/pixmaps', glob.glob('data/pixmaps/*')),
                  ('/usr/share/feedbar/images', glob.glob('data/images/*'))
#                  ('share/locale/pl/LC_MESSAGES', ['mo/pl/mpdBrowser.mo']),
#                  ('share/locale/fr/LC_MESSAGES', ['mo/fr/mpdBrowser.mo']),
#                  ('share/locale/it/LC_MESSAGES', ['mo/it/mpdBrowser.mo'])
                 ]
)
